Pre-requisites
- A Tempo Project
- Either a Max subscription (recommended) or Anthropic API key
- Terminal access (for Max subscription setup)
Connection Methods
There are two ways to connect Claude Code with your Tempo project:Max Subscription
Recommended method using OAuth authentication
Anthropic API
Direct API integration using your Anthropic API key
Max Subscription (Recommended)
The Max subscription method provides seamless OAuth authentication and is the preferred way to connect Claude Code.Step 1: Install Claude Code
First, verify if Claude Code is already installed on your machine:Step 2: Setup Authentication Token
Run the setup command in your terminal:- Open a browser window for authentication
- Redirect you to the Anthropic authorization page
Step 3: Authorize Access
- Click Authorize in the browser window that opens
- Complete the OAuth flow in your browser
- Return to your terminal - you’ll see the authentication token displayed


Step 4: Configure Tempo Environment
- Copy the token from your terminal
- Open your Tempo project
- Navigate to Project Settings
- Add a new environment variable:
- Name:
CLAUDE_CODE_OAUTH_TOKEN
- Value: [Paste the copied token]
- Name:

Your Claude Code integration is now active! All the changes made using
Claude Code
model from Tempo will now use your Max subscription.Anthropic API Method
If you prefer to use your own Anthropic API key, you can connect Claude Code directly through the API.Step 1: Get Your Anthropic API Key
- Visit the Claude Console
- Navigate to API Keys section from the Sidebar
- Create a new API key or copy an existing one
- Ensure your account has available credits (check the Billing section)

Your Anthropic account must be funded with credits for the API key to work. Check your usage and billing status in the console before proceeding.
Step 2: Configure Environment Variable
- Open your Tempo project
- Navigate to Project Settings
- Add a new environment variable:
- Name:
ANTHROPIC_API_KEY
- Value: [Your Anthropic API key]
- Name:

Keep your API key secure and never commit it to version control. Tempo automatically encrypts and secures your environment variables.
Using Claude Code in Tempo
Claude Code is always visible as a model option in your AI chat interface. However, it requires proper authentication to function.If you haven’t configured authentication (either OAuth token or API key), selecting Claude Code will result in an error message. You must complete one of the authentication methods above before Claude Code will work.
Features
Advanced File Editing
Advanced File Editing
Claude Code can read, edit, and create files across your entire project with precise context awareness.
Project-Wide Understanding
Project-Wide Understanding
Unlike regular models, Claude Code maintains awareness of your complete project structure and dependencies.
Tool Integration
Tool Integration
Access to specialized tools for terminal commands, file operations, and project management.
Real-time Collaboration
Real-time Collaboration
Changes made by Claude Code are immediately reflected in your Tempo workspace.
Model Switching
- Selecting Claude Code: Automatically switches to the latest Claude Code conversation
- Switching to Regular Models: Automatically enables MAX mode and switches to your latest regular conversation
Troubleshooting
Token Authentication Failed
Token Authentication Failed
If authentication fails:
- Run
claude setup-token
again - Ensure you complete the full OAuth flow in the browser
- Check that the token was copied correctly to Tempo settings
Claude Code Shows Error When Selected
Claude Code Shows Error When Selected
Claude Code is always visible in the model dropdown, but will fail if not authenticated:
- Verify you’ve set either
CLAUDE_CODE_OAUTH_TOKEN
orANTHROPIC_API_KEY
- Check that the environment variable values are correct
- For Max subscription, ensure your subscription is active
- For API key, verify it’s valid in the Anthropic Console
API Key Issues
API Key Issues
For Anthropic API method:
- Verify your API key is valid in the Anthropic Console
- Check that your account is funded - API keys won’t work without available credits
- Ensure the environment variable is named
ANTHROPIC_API_KEY
- Review your API usage limits and billing status in the console
Next Steps
- Test the Integration: Select Claude Code from the model dropdown and try a simple file edit
- Explore Advanced Features: Ask Claude Code to analyze your project structure or suggest improvements
- Combine with Other Tools: Use Claude Code alongside Tempo’s other AI models for comprehensive development assistance
You’re all set! Claude Code is now integrated with your Tempo project and ready to supercharge your development workflow.